<?
if(defined("_PARA_RPCSTUFF"))
    return;
define("_PARA_RPCSTUFF", 1);

class RPC_Error {
    public $operation;
    public $status;
    public $error_id;
    public $description;
    public $postback = null;
    public $token    = null;

    function RPC_Error( $operation, $error_id, $description ) {
        $this->operation   = $operation;
        $this->status      = "error";
        $this->error_id    = $error_id;
        $this->description = $description;
    }
}


class RPC_Response {
    public $status;
    public $operation;
    public $retval;
    public $postback = null;
    public $token    = null;
    
    function RPC_Response( $operation, $retval ) {
        $this->status     = 'ok';
        $this->operation  = $operation;
        $this->retval    = $retval;
    }
}


?>